package cn.edu.lnpu.manage.cms.service;

import cn.edu.lnpu.domain.system.SysDictionary;
import cn.edu.lnpu.manage.cms.dao.SysDictionaryRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysDictionaryService {

    @Autowired
    private SysDictionaryRepository sysDictionaryRepository;

    public SysDictionary getByType(String type) {
        return sysDictionaryRepository.findBydType(type);
    }
}
